﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HTTT.DataAccess;
using HTTT.Utilities;
using HTTT.AD;

namespace HTTT.Bussiness
{
    public class HT_STCountBO
    {

        public IEnumerable<HT_STCount> GetAllHT_STCount()
        {
            HT_STCountDAO _dao = new HT_STCountDAO();
            return _dao.GetAllHT_STCount();
        }
        public HT_STCount GetHT_STCountById(Guid id)
        {
            HT_STCountDAO _dao = new HT_STCountDAO();
            return _dao.GetHT_STCountByID(id);
        }
        public bool InsertHT_STCount(HT_STCount inHT_STCount)
        {
            HT_STCountDAO _dao = new HT_STCountDAO();
            return _dao.InsertHT_STCount(inHT_STCount);
        }
        public bool UpdateHT_STCount(HT_STCount inHT_STCount)
        {
            HT_STCountDAO _dao = new HT_STCountDAO();
            return _dao.UpdateHT_STCount(inHT_STCount);
        }

        public ReturnValue<bool> DeleteHT_STCount(Guid id)
        {
            HT_STCountDAO _dao = new HT_STCountDAO();
            return _dao.DeleteHT_STCount(id); 
        }

        public IEnumerable<HT_STCount> SearchHT_STCount(string keyword)
        {
            HT_STCountDAO _dao = new HT_STCountDAO();
            return _dao.SearchHT_STCount(keyword);
        }

        public ReturnValue<bool> InsertLoginCount(List<HT_UserLoginCount> ListUserLoginCount)
        {
            HT_STCountDAO _dao = new HT_STCountDAO();
            return _dao.InsertLoginCount(ListUserLoginCount);
        }
    }
}
